<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>博文归档</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>
    <!--导航-->
    <nav th:replace="_fragments :: menu(4)" class="ui  inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui blue header item">鄭氏博客</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="ui red  home icon"></i>我的首页</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="green sitemap icon"></i>博文分类</a>
                <a href="#" class="active m-item item m-mobile-hide"><i class="purple tags icon"></i>博文标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="teal clone icon"></i>博文归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="brown info circle icon"></i>与吾有关</a>
                <div class="m-item right item m-mobile-hide">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="请输入想要搜索的......">
                        <i class="teal searchengin link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <a href="" class="ui menu toggle black icon button m-right-top m-mobile-show"> <i class="sidebar icon"></i></a>
    </nav>
    <!--中间部分-->
    <div class="m-container m-padded-tb-large animated fadeInUp">
        <!--header头部-->
        <div class="ui top attached padded segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header "><i class="clone icon"></i>博文归档</h3>
                </div>
                <div class="right aligned column">
                    共 <h2 class="ui red header m-inline-block m-text-thin" th:text="${blogCount}"> 999 </h2>篇博文
                </div>
            </div>
        </div>

        <th:block th:each="item :${archiveMap}">
        <h3 class="ui center aligned header" th:text="${item.key}">2020</h3>
        <div class="ui fluid vertical menu">
            <a th:href="@{/blog/{id}(id=${blog.id})}" class="item" target="_blank" th:each="blog : ${item.value}">
                <span><i class=" green circle icon"></i><span th:text="${blog.title}">关于系统开发</span>
                <div class="ui teal  left pointing label" th:text="${#dates.format(blog.updateTime,'MM月dd日')}">4月5日</div>
                </span>
                <div class="ui orange large right pointing label" th:text="${blog.flag}">原创</div>
            </a>
        </div>
        </th:block>
    </div>
    </div>
    <!--底部footer-->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-big">
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">
                <div class="two wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">微信</h4>
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/wx.jpg" alt="" class="ui rounded image" style="width: 90px">
                        </div>
                    </div>
                </div>
                <div class="two wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">微博</h4>
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/wb.jpg" alt="" class="ui rounded image" style="width: 90px">
                        </div>
                    </div>
                </div>
                <div class="two wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">公众号</h4>
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/gzh.jpg" alt="" class="ui rounded image" style="width: 90px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">最新博文</h4>
                    <div class="ui inverted link list">
                        <a href="" class="item">开发工具</a>
                        <a href="" class="item">开发工具</a>
                        <a href="" class="item">开发工具</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">与吾联系</h4>
                    <div class="ui inverted link list">
                        <a href="javascript:void (0);" class="item">Email：1775825464@qq.com</a>
                        <a href="javascript:void (0);" class="item">QQ：1775825464</a>
                    </div>
                </div>
                <div class="four wide column">
                <h4 class="ui inverted header">吾之自白</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">如果你有能力去解决问题,而不行动,那一但有坏事发生就是你的责任!</p>
                <p class="m-text-thin m-text-spaced m-opacity-mini">With great power,with great responsibility!</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-tiny" style="color: olive">Copyright © 2020 by 鄭氏</p>
        </div>
    </footer>
    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <!--/*/</th:block>/*/-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
        return false;
    });
</script>
</body>
</html>